<?php
namespace app\model;

use think\Exception;
use think\Model;

class Word extends Model {
    protected $autoWriteTimestamp = false;
    protected $createTime = false;
    protected $updateTime = false;

    protected $append = ['chars'];

    public function getCharsAttr($value, $data) {
        return mb_str_split($data['word']);
    }
}